
package com.eworking.eim.message.body;

import com.eworking.eim.EIMCallBack;

public abstract class FileMessageBody extends MessageBody {
    
    public transient EIMCallBack callBack = null;
    
    public transient boolean downloaded = false;
    
    /** 文件名称 */
    public String fileName = null;
    
    /** 本地地址 */
    public String localUrl = null;
    
    /** 远程服务器地址 */
    public String remoteUrl = null;
    
    public String secret = null;
    
    public void setDownloadCallback(EIMCallBack callBack) {
        if (this.downloaded) {
            callBack.onProgress(100, null);
            callBack.onSuccess();
            return;
        }
        this.callBack = callBack;
    }
    
    public String getFileName() {
        return this.fileName;
    }
    
    public void setFileName(String paramString) {
        this.fileName = paramString;
    }
    
    public String getLocalUrl() {
        return this.localUrl;
    }
    
    public void setLocalUrl(String paramString) {
        this.localUrl = paramString;
    }
    
    public String getRemoteUrl() {
        return this.remoteUrl;
    }
    
    public void setRemoteUrl(String paramString) {
        this.remoteUrl = paramString;
    }
    
    public void setSecret(String paramString) {
        this.secret = paramString;
    }
    
    public String getSecret() {
        return this.secret;
    }
}
